package Stream;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Stream;

public class StreamDemo {
    public static void main(String[] args) {
//        List.of     JDK9以后
        /*ArrayList<String> list1 = new ArrayList<String>(List.of("张三丰","张无忌","张翠山","王二麻子","张良","谢广坤"));

        list1.stream().filter(s -> s.startsWith("张")).filter(s -> s.length() == 3).forEach(s -> System.out.println(s));*/
    }
}
